package com.example.waitdemo.utils;

public enum HttpStatus {
    SUCCESS(200, "成功"), FAIL(-100, "失败"), AUTH_ERROR(-101, "没有权限！"), NO_LOGIN(-200, "未登录"), NO_FILE(-202, "文件不存在,请刷新页面！");
    private String msg;

    private int code;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    HttpStatus(int code, String msg) {
        this.msg = msg;
        this.code = code;
    }
}
